/**
 * 订单相关的请求
 */
import Urls from '../ApiUrls';
import ApiBase from './ApiBase';
class ApiOrder {
  orderList(parms) {
    return ApiBase.send(Urls.URL_ORDER_LIST,parms);
  }
  orderDetail(parms) {
    return ApiBase.send(Urls.URL_ORDER_DETAIL,parms);
  }
  orderDeliver(parms) {
    return ApiBase.send(Urls.URL_ORDER_DELIVER,parms);
  }
  orderBatchDeliver(parms) {
    return ApiBase.send(Urls.URL_ORDER_BATCH_DELIVER,parms);
  }
  changeWaybill(parms) {
    return ApiBase.send(Urls.URL_ORDER_CHANGE_WAY_BILL,parms);
  }
  exportOrderBlank(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_ORDER_BLANK,parms);
  }
  exportInvoice(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_INVOICE,parms);
  }
  exportStandardInvoice(params) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_STANDARD_INVOICE, params);
  }
  exportTransferExcel(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_TRANSFER_EXCEL,parms);
  }
  getItemRecord(parms) {
    return ApiBase.send(Urls.URL_ORDER_ITEM_RECORD,parms);
  }
  getRefundList(parms) {
    return ApiBase.send(Urls.URL_REFUND_LIST,parms);
  }
  prepareOrders(params){
    return ApiBase.send(Urls.URL_PREPARE_ORDER, params);
  }
  trackPackage(params){
    return ApiBase.send(Urls.URL_TRACK_PACKAGE, params);
  }
  getItemDiscount(params) {
    return ApiBase.send(Urls.URL_ORDER_ITEM_DISCOUNT, params);
  }
  getPackageAftersale(parms) {
    return ApiBase.send(Urls.URL_PACKAGE_AFTERSALE, parms);
  }
  handlerUnreceivedPackage(parms) {
    return ApiBase.send(Urls.URL_HANDLER_UNRECEIVED_PACKAGE, parms);
  }
  handlerAftersaleItem(parms) {
    return ApiBase.send(Urls.URL_HANDLER_AFTERSALE_ITEM, parms);
  }
  exportReport(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_REPORT, parms);
  }
  firstOrders(params){
    return ApiBase.send(Urls.URL_ORDER_USER_FIRST_ORDER, params);
  }
  refundItems(params){
    return ApiBase.send(Urls.URL_ORDER_REFUND_ITEMS, params);
  }
  confirmOrders(params){
    return ApiBase.send(Urls.URL_ORDER_CONFIRM, params);
  }
  stockOutOrders(params){
    return ApiBase.send(Urls.URL_ORDER_STOCK_OUT, params);
  }
  refundOrder(params){
    return ApiBase.send(Urls.URL_ORDER_REFUND, params);
  }
  splitItem(params){
    return ApiBase.send(Urls.URL_ORDER_SPLIT_ITEM, params);
  }
  cancelUnconfirmedOrder(params){
    return ApiBase.send(Urls.URL_ORDER_CANCEL_UNFIRMED, params);
  }
  countRefundPostage(params){
    return ApiBase.send(Urls.URL_ORDER_COUNT_REFUND_POSTAGE, params);
  }
  addInnerNote(params){
    return ApiBase.send(Urls.URL_ORDER_ADD_INNERNOTE, params);
  }

  getInnerNoteList(params){
    return ApiBase.send(Urls.URL_ORDER_INNERNOTE_LIST, params);
  }

  modifyImportantNote(params){
    return ApiBase.send(Urls.URL_ORDER_MODIFY_IMPORTANTNOTE, params);
  }
  getOrderPaymentRecord(parms) {
    return ApiBase.send(Urls.URL_ORDER_PAYMENT_RECORDS, parms);
  }
  getOrderDiscount(params) {
    return ApiBase.send(Urls.URL_ORDER__DISCOUNT, params);
  }
  getOrderShortageRefund(params) {
    return ApiBase.send(Urls.URL_ORDER_SHORTAGE_REFUND, params);
  }
  changeRefundState(params) {
    return ApiBase.send(Urls.URL_CHANGE_REFUND_STATE, params);
  }
  shortageRefundDetail(params) {
    return ApiBase.send(Urls.URL_SHORTAGE_REFUND_DETAIL, params);
  }
  exportMiaozhangSale(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_MIAOZHANG_SALE,parms);
  }
  exportPurchaseOrders(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_PURCHASE_ORDER,parms);
  }
  exportProductCodeForPrint(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_PRODUCT_CODE, parms);
  }
  exportOrderTurnover(parms) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_TURNOVER, parms);
  }
  saveRefundPostage(params){
    return ApiBase.send(Urls.URL_ORDER_SAVE_REFUND_POSTAGE, params);
  }
  getOrderRecord(params) {
    return ApiBase.send(Urls.URL_ORDER_RECORD, params);
  }
  getPackageRecord(params) {
    return ApiBase.send(Urls.URL_ORDER_PACKAGE_RECORD, params);
  }
  setRefusePayment(params){
    return ApiBase.send(Urls.URL_ORDER_SET_REFUSE_PAYMENT, params);
  }
  getCreditCart(parms) {
    return ApiBase.send(Urls.URL_ORDER_GET_CREDITCART, parms);
  }
  exportTradeData(params) {
    return ApiBase.send(Urls.URL_ORDER_EXPORT_TRADE_DATA, params);
  }
  confirmOffline(params) {
    return ApiBase.send(Urls.URL_ORDER_CONFIRM_OFFLINE, params);
  }
  getOrderCuorierList(params){

    return ApiBase.send(Urls.URL_ORDER_Cuorie_List, params);
  }
}
export  default  ApiOrder
